package com.nav.test;

import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;

public class RobotUsage {

	/**
	 * @param args
	 * @throws AWTException 
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws AWTException, InterruptedException {
		Robot robot = new Robot();
		robot.mouseMove(108, 100);
		robot.mousePress(InputEvent.BUTTON1_MASK);
		robot.mouseRelease(InputEvent.BUTTON1_MASK);
		System.out.println("move");
		robot.mouseMove(108, 87);
		System.out.println("press");
		robot.mousePress(InputEvent.BUTTON1_MASK);
		Thread.sleep(1000);
		System.out.println("move");
		robot.mouseMove(1010, 160);
		System.out.println("release");
		robot.mouseRelease(InputEvent.BUTTON1_MASK);
	}
}
